<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:selectpicker('row[type]', $cateList, $row.type)}
        </div>
    </div>

    <div class="form-group">
        <label for="c-title" class="control-label col-xs-12 col-sm-2">{:__('title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_title" class="control-label col-xs-12 col-sm-2">{:__('title')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-en_title" data-rule="" class="form-control" name="row[en_title]" type="text" value="{$row.en_title}">
        </div>
    </div>

    <div class="form-group">
        <label for="c-second_title" class="control-label col-xs-12 col-sm-2">{:__('Second title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea maxlength="50" id="c-second_title" data-rule="required" class="form-control" name="row[second_title]" rows="3">{$row.second_title}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_second_title" class="control-label col-xs-12 col-sm-2">{:__('Second title')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-en_second_title" data-rule="" class="form-control" name="row[en_second_title]" rows="3">{$row.en_second_title}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label for="c-author" class="control-label col-xs-12 col-sm-2">{:__('Author')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-author" data-rule="required" class="form-control" name="row[author]" type="text" value="{$row.author}">
        </div>
    </div>
     <div class="form-group">
        <label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_image('image',$row.image,['name'=>"row[image]",'msg_tip'=>'建议尺寸：560px * 420px','data-rule'=>"required"])}
        </div>
    </div>
<!--    <div class="form-group">
        <label for="c-introduction" class="control-label col-xs-12 col-sm-2">{:__('Introduction')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-introduction" rows="5" class="form-control" name="row[introduction]">{$row.introduction}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_introduction" class="control-label col-xs-12 col-sm-2">{:__('Introduction')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-en_introduction" data-rule="required" class="form-control" name="row[en_introduction]" rows="10">{$row.en_introduction}</textarea>
        </div>
    </div>-->
<!--    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[type]', $typeList, $row.type)}
        </div>
    </div>-->
    <div class="form-group type-editor">
        <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <!--<textarea id="c-content" data-rule="required" class="form-control" name="row[content]" rows="10">{$row.content}</textarea>-->
            {:build_editor('row[content]', $row.content, ['id' => 'c-content'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_content" class="control-label col-xs-12 col-sm-2">{:__('Content')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            {:build_editor('row[en_content]', $row.en_content, ['id' => 'c-en_content'])}
        </div>
    </div>
<!--    <div class="form-group">
        <label for="c-info_image" class="control-label col-xs-12 col-sm-2">{:__('Images')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_image('info_image',$row.info_image,['name'=>"row[info_image]"])}
        </div>
    </div>-->
    <div class="form-group weigh">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="text" value="{$row.weigh}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is release')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[is_release]', [ '1'=>__('Is release true'), '0'=>__('Is release false') ], $row.is_release)}
        </div>
    </div>
<!--    <div class="form-group">
        <label for="c-web_title" class="control-label col-xs-12 col-sm-2">{:__('Web title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-web_title" data-rule="" class="form-control" name="row[web_title]" type="text" value="{$row.web_title}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_web_title" class="control-label col-xs-12 col-sm-2">{:__('Web title')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-en_web_title" data-rule="" class="form-control" name="row[en_web_title]" type="text" value="{$row.en_web_title}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-web_keywords" class="control-label col-xs-12 col-sm-2">{:__('Web keywords')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-web_keywords" data-rule="" class="form-control editor" name="row[web_keywords]" rows="5">{$row.web_keywords}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_web_keywords" class="control-label col-xs-12 col-sm-2">{:__('Web keywords')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-en_web_keywords" data-rule="" class="form-control" name="row[en_web_keywords]" rows="5">{$row.en_web_keywords}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-web_description" class="control-label col-xs-12 col-sm-2">{:__('Web description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-web_description" data-rule="" class="form-control" name="row[web_description]" rows="5">{$row.web_description}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-en_web_description" class="control-label col-xs-12 col-sm-2">{:__('Web description')}(英文):</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-en_web_description" data-rule="" class="form-control" name="row[en_web_description]" rows="5">{$row.en_web_description}</textarea>
        </div>
    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <input type="hidden" name="row[uid]" value="0" />
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed btn-reset">{:__('Reset')}</button>
        </div>
    </div>
</form>